using System;
using System.Collections.Generic;
using System.Text;
using Enums = Norm.Enum;

namespace Norm.Helper
{
    public sealed class EnumHelper
    {
        public static Enums.EventType EventType(string s)
        {
            switch (s.ToLower())
            {
                case "countdown":
                    return Enums.EventType.CountDown;
                case "countup":
                    return Enums.EventType.CountUp;
            }
            throw new Exception.NotValidEnumValue();
        }
    }
}
